import request from '@/utils/request';

export async function getDriveParaLibEngineerByPage(params: any) {
  return request('/api/drivePara/getDriveParaLibEngineerByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addDriveParaLibEngineer(params: any) {
  return request('/api/drivePara/addDriveParaLibEngineer', {
    method: 'POST',
    data: params,
  });
}

export async function delDriveParaLibEngineer(params: any) {
  return request('/api/drivePara/delDriveParaLibEngineer', {
    method: 'POST',
    data: params,
  });
}

export async function delDriveParasLibEngineer(params: any) {
  return request('/api/drivePara/delDriveParasLibEngineer', {
    method: 'POST',
    data: params,
  });
}

export async function updateDriveParaLibEngineer(params: any) {
  return request('/api/drivePara/updateDriveParaLibEngineer', {
    method: 'POST',
    data: params,
  });
}

export async function uploadDriveParaLibEngineerExcel(params: any) {
  return request('/api/drivePara/uploadDriveParaLibEngineerExcel', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}

/**
 * 下载excel
 * @param params
 * @returns
 */
export async function driveParaLibExcelEngineerExport() {
  return request('/api/drivePara/driveParaLibEngineerExcelExport', {
    method: 'POST',
    responseType: 'blob',
  });
}

export async function addDriveParaLibsEngineer(params: any) {
  return request('/api/drivePara/addDriveParaLibsEngineer', {
    method: 'POST',
    data: params,
  });
}
